<template>
  <el-card class="box-card">
    <template #header>
      <el-icon class="bell"><Bell /></el-icon>
      公告
    </template>
    <div v-html="store.state.frontData.bulletin" class="bulletin"></div>
  </el-card>
</template>

<script lang="ts" setup>
import { inject } from 'vue'
import { Bell } from '@element-plus/icons-vue'

const store: any = inject('store')
</script>

<style lang="scss" scoped>
.box-card {
  width: 280px;
  color: #4c4948;
  letter-spacing: 2px;
  border-radius: 10px;
  margin-top: 30px;
  .card-header {
    display: flex;
  }
  .bell {
    display: inline-block;
    margin: 0 8px;
    color: red;
    font-size: 18px;
    animation: scale 1s infinite alternate linear;
  }
  .bulletin {
    line-height: 25px;
  }
}

@keyframes scale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.4);
  }
}
</style>
